<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    protected $table='article';
    //protected $timestamps=false;
    public $timestamps=false;
    public function author()
    {
        return $this->hasOne('App\Author','id','author_id');
    }
    public function keyword()
    {
        return $this->belongsTToMany('App\Keyword','article_keyword','article_id','keyword_id');
    }
}